package com.songlanyun.modules.protocol.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import com.songlanyun.common.drive.RootEntity;
import lombok.Data;

/**
 * 会员注册和商家申请协议
 * 
 * @author lubo
 * @email sunlightcs@gmail.com
 * @date 2021-02-01 15:37:15
 */
@Data
@TableName("sys_protocol")
public class SysProtocolEntity extends RootEntity<Integer,SysProtocolEntity> implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId
	private Integer id;
	/**
	 * 会员注册协议
	 */
	private String userProtocol;
	/**
	 * 商家申请协议
	 */
	private String shopProtocol;
	/**
	 * 
	 */
	@TableField(fill = FieldFill.INSERT)
	private Date createTime;
	/**
	 * 
	 */
	@TableField(fill = FieldFill.INSERT_UPDATE)
	private Date updateTime;

	@Override
	public Integer getIdentity() {
		return getId();
	}
}
